/**
 *
 */
package hb.software.student.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.hb.software.base.domain.BaseEntity;
import hb.software.student.group.Group;

/**
 * @author Mie
 *
 */
@Entity
@Table(name = "T_student")
public class Student extends BaseEntity<Long> {
    /**
     *
     */
    private static final long serialVersionUID = 7903001218740891395L;
    @ManyToOne
    @JoinColumn(name = "GROUP_ID")
    Group group;
    @Column
    String name;
    @Column
    String clazz;
    @Column
    String code;
    @Column
    Gender gender;
    @Column
    String grade;
    @Column
    String score;
    @Column
    String major;
    @Column
    String address;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Gender getGender() {
        return gender;
    }

    public void setGender(Gender gender) {
        this.gender = gender;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getClazz() {
        return clazz;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz;
    }

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

}
